package com.lenovo.testreport.qa.web.languagetestbypage.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author CJF
 * @date 2018/12
 */
public class QaWebLanguageEnglishReportExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QaWebLanguageEnglishReportExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRidIsNull() {
            addCriterion("rid is null");
            return (Criteria) this;
        }

        public Criteria andRidIsNotNull() {
            addCriterion("rid is not null");
            return (Criteria) this;
        }

        public Criteria andRidEqualTo(Integer value) {
            addCriterion("rid =", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotEqualTo(Integer value) {
            addCriterion("rid <>", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThan(Integer value) {
            addCriterion("rid >", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThanOrEqualTo(Integer value) {
            addCriterion("rid >=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThan(Integer value) {
            addCriterion("rid <", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThanOrEqualTo(Integer value) {
            addCriterion("rid <=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidIn(List<Integer> values) {
            addCriterion("rid in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotIn(List<Integer> values) {
            addCriterion("rid not in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidBetween(Integer value1, Integer value2) {
            addCriterion("rid between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotBetween(Integer value1, Integer value2) {
            addCriterion("rid not between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(String value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(String value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(String value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(String value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(String value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(String value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLike(String value) {
            addCriterion("version like", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotLike(String value) {
            addCriterion("version not like", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<String> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<String> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(String value1, String value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(String value1, String value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andJobnameIsNull() {
            addCriterion("jobname is null");
            return (Criteria) this;
        }

        public Criteria andJobnameIsNotNull() {
            addCriterion("jobname is not null");
            return (Criteria) this;
        }

        public Criteria andJobnameEqualTo(String value) {
            addCriterion("jobname =", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameNotEqualTo(String value) {
            addCriterion("jobname <>", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameGreaterThan(String value) {
            addCriterion("jobname >", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameGreaterThanOrEqualTo(String value) {
            addCriterion("jobname >=", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameLessThan(String value) {
            addCriterion("jobname <", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameLessThanOrEqualTo(String value) {
            addCriterion("jobname <=", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameLike(String value) {
            addCriterion("jobname like", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameNotLike(String value) {
            addCriterion("jobname not like", value, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameIn(List<String> values) {
            addCriterion("jobname in", values, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameNotIn(List<String> values) {
            addCriterion("jobname not in", values, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameBetween(String value1, String value2) {
            addCriterion("jobname between", value1, value2, "jobname");
            return (Criteria) this;
        }

        public Criteria andJobnameNotBetween(String value1, String value2) {
            addCriterion("jobname not between", value1, value2, "jobname");
            return (Criteria) this;
        }

        public Criteria andCasenumIsNull() {
            addCriterion("casenum is null");
            return (Criteria) this;
        }

        public Criteria andCasenumIsNotNull() {
            addCriterion("casenum is not null");
            return (Criteria) this;
        }

        public Criteria andCasenumEqualTo(Integer value) {
            addCriterion("casenum =", value, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumNotEqualTo(Integer value) {
            addCriterion("casenum <>", value, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumGreaterThan(Integer value) {
            addCriterion("casenum >", value, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("casenum >=", value, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumLessThan(Integer value) {
            addCriterion("casenum <", value, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumLessThanOrEqualTo(Integer value) {
            addCriterion("casenum <=", value, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumIn(List<Integer> values) {
            addCriterion("casenum in", values, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumNotIn(List<Integer> values) {
            addCriterion("casenum not in", values, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumBetween(Integer value1, Integer value2) {
            addCriterion("casenum between", value1, value2, "casenum");
            return (Criteria) this;
        }

        public Criteria andCasenumNotBetween(Integer value1, Integer value2) {
            addCriterion("casenum not between", value1, value2, "casenum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumIsNull() {
            addCriterion("successnum is null");
            return (Criteria) this;
        }

        public Criteria andSuccessnumIsNotNull() {
            addCriterion("successnum is not null");
            return (Criteria) this;
        }

        public Criteria andSuccessnumEqualTo(Integer value) {
            addCriterion("successnum =", value, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumNotEqualTo(Integer value) {
            addCriterion("successnum <>", value, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumGreaterThan(Integer value) {
            addCriterion("successnum >", value, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("successnum >=", value, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumLessThan(Integer value) {
            addCriterion("successnum <", value, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumLessThanOrEqualTo(Integer value) {
            addCriterion("successnum <=", value, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumIn(List<Integer> values) {
            addCriterion("successnum in", values, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumNotIn(List<Integer> values) {
            addCriterion("successnum not in", values, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumBetween(Integer value1, Integer value2) {
            addCriterion("successnum between", value1, value2, "successnum");
            return (Criteria) this;
        }

        public Criteria andSuccessnumNotBetween(Integer value1, Integer value2) {
            addCriterion("successnum not between", value1, value2, "successnum");
            return (Criteria) this;
        }

        public Criteria andFailnumIsNull() {
            addCriterion("failnum is null");
            return (Criteria) this;
        }

        public Criteria andFailnumIsNotNull() {
            addCriterion("failnum is not null");
            return (Criteria) this;
        }

        public Criteria andFailnumEqualTo(Integer value) {
            addCriterion("failnum =", value, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumNotEqualTo(Integer value) {
            addCriterion("failnum <>", value, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumGreaterThan(Integer value) {
            addCriterion("failnum >", value, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("failnum >=", value, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumLessThan(Integer value) {
            addCriterion("failnum <", value, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumLessThanOrEqualTo(Integer value) {
            addCriterion("failnum <=", value, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumIn(List<Integer> values) {
            addCriterion("failnum in", values, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumNotIn(List<Integer> values) {
            addCriterion("failnum not in", values, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumBetween(Integer value1, Integer value2) {
            addCriterion("failnum between", value1, value2, "failnum");
            return (Criteria) this;
        }

        public Criteria andFailnumNotBetween(Integer value1, Integer value2) {
            addCriterion("failnum not between", value1, value2, "failnum");
            return (Criteria) this;
        }

        public Criteria andReporttimeIsNull() {
            addCriterion("reporttime is null");
            return (Criteria) this;
        }

        public Criteria andReporttimeIsNotNull() {
            addCriterion("reporttime is not null");
            return (Criteria) this;
        }

        public Criteria andReporttimeEqualTo(Date value) {
            addCriterion("reporttime =", value, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeNotEqualTo(Date value) {
            addCriterion("reporttime <>", value, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeGreaterThan(Date value) {
            addCriterion("reporttime >", value, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("reporttime >=", value, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeLessThan(Date value) {
            addCriterion("reporttime <", value, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeLessThanOrEqualTo(Date value) {
            addCriterion("reporttime <=", value, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeIn(List<Date> values) {
            addCriterion("reporttime in", values, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeNotIn(List<Date> values) {
            addCriterion("reporttime not in", values, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeBetween(Date value1, Date value2) {
            addCriterion("reporttime between", value1, value2, "reporttime");
            return (Criteria) this;
        }

        public Criteria andReporttimeNotBetween(Date value1, Date value2) {
            addCriterion("reporttime not between", value1, value2, "reporttime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}